import request from '@/utils/request'

// 获取首页活动列表
export function getProjectList(data) {
  return request({
    url: '/project/list',
    method: 'post',
    data: data
  })
}
// 获取首页优秀作品活动列表
export function getHomeExcellentList(query) {
  return request({
    url: '/project/Excellent/homeList',
    method: 'get',
    params: query
  })
}
// 获取活动明细
export function getProjectInfo(query) {
  return request({
    url: '/project/brief',
    method: 'get',
    params: query
  })
}


// 获取阶段明细
export function getTaskInfo(query) {
  return request({
    url: '/project/stage/mission/brief',
    method: 'get',
    params: query
  })
}

// 获取阶段明细-修改
export function getTaskInfoEdit(query) {
  return request({
    url: '/project/stage/mission/info',
    method: 'get',
    params: query
  })
}

// 成果上传
export function saveResult(data) {
  return request({
    url: '/project/result/resultSubmit',
    method: 'post',
    data: data
  })
}

// 报名
export function joinProject(data) {
  return request({
    url: '/project/join/add',
    method: 'post',
    data: data
  })
}

//创新实践活动列表
export function getInnovationList(query) {
  return request({
    url: '/public/api/dataList',
    method: 'get',
    params: query
  })
}


//获取底边栏
export function getFooter() {
  return request({
    url: '/information/bottom/message',
    method: 'get'
  })
}

//统计-成果统计
export function getStatisticOutcome(query) {
  return request({
    url: '/statistic/outcome',
    method: 'get',
    params: query
  })
}

//统计-成果统计
export function getStatisticTask(query) {
  return request({
    url: '/statistic/list',
    method: 'get',
    params: query
  })
}

//统计-成果列表
export function getUserDistribution(query) {
  return request({
    url: '/statistic/userDistribution',
    method: 'get',
    params: query
  })
}


//统计-任务数显示
export function getStatisticInfo(query) {
  return request({
    url: '/statistic/getInfo',
    method: 'get',
    params: query
  })
}

//统计-相关成员
export function getTeamList(query) {
  return request({
    url: '/statistic/getTeamList',
    method: 'get',
    params: query
  })
}

//图谱-首页表
export function getSpectrum(query) {
  return request({
    url: '/spectrum/list',
    method: 'get',
    params: query
  })
}

//图谱-首页表-获取详情
export function getSpectrumInfo(query) {
  return request({
    url: '/spectrum/getInfo',
    method: 'get',
    params: query
  })
}

//图谱-首页表-雷达图
export function getMatrixInfo(query) {
  return request({
    url: '/spectrum/getMatrixInfo',
    method: 'get',
    params: query
  })
}

//图谱-证书地址获取
export function getZSurl(query) {
  return request({
    url: '/merit/certificate',
    method: 'get',
    params: query
  })
}